package com.igame.mapper;

import com.igame.vo.CategoriesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoriesMapper {
    @Select("select * from categories")
    List<CategoriesVo> findAll();

    @Select("select name from categories where id=#{id}")
    String selectById(@Param("id") Integer id);
}
